package com.ckf.login_wx.entity;


import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.ckf.login_wx.entity.Repertory;
import com.fasterxml.jackson.annotation.JsonFormat;


public class RepertorySum {

    private int id;
    private String modele;
    private String weight;
    private String colour;
    private int wall;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date time;
    private int quantite;
    private String saisie;
    private int quantiteex;//出售
    private int quantites;//剩余
    public RepertorySum(Repertory a) {
    	this.modele=a.getModele();
    	this.weight=a.getWeight();
    	this.colour=a.getColour();
    	this.wall=a.getWall();
    	this.time=a.getTime();
    	this.quantite=a.getQuantite();
    	this.saisie=a.getSaisie();
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getModele() {
		return modele;
	}
	public void setModele(String modele) {
		this.modele = modele;
	}
	public String getWeight() {
		return weight;
	}
	public void setWeight(String weight) {
		this.weight = weight;
	}
	public String getColour() {
		return colour;
	}
	public void setColour(String colour) {
		this.colour = colour;
	}
	public int getWall() {
		return wall;
	}
	public void setWall(int wall) {
		this.wall = wall;
	}
	public Date getTime() {
		return time;
	}
	public void setTime(Date time) {
		this.time = time;
	}
	public int getQuantite() {
		return quantite;
	}
	public void setQuantite(int quantite) {
		this.quantite = quantite;
	}
	public String getSaisie() {
		return saisie;
	}
	public void setSaisie(String saisie) {
		this.saisie = saisie;
	}
	public int getQuantiteex() {
		return quantiteex;
	}
	public void setQuantiteex(int quantiteex) {
		this.quantiteex = quantiteex;
	}
	public int getQuantites() {
		return quantites;
	}
	public void setQuantites(int quantites) {
		this.quantites = quantites;
	}
	@Override
	public String toString() {
		return "RepertorySum [id=" + id + ", modele=" + modele + ", weight="
				+ weight + ", colour=" + colour + ", wall=" + wall + ", time="
				+ time + ", quantite=" + quantite + ", saisie=" + saisie
				+ ", quantiteex=" + quantiteex + ", quantites=" + quantites
				+ "]";
	}
	
}
